package com.itheima.properties;

import java.util.Properties;
import java.util.Set;

public class Demo02 {

    public static void main(String[] args) {
        Properties prop = new Properties();

        prop.setProperty("最大容量","100L");
        prop.setProperty("最小容量","20L");
        prop.setProperty("默认容量","50L");

        System.out.println(prop.getProperty("最大容量"));


        Set<String> propertyNames = prop.stringPropertyNames();
        for (String propertyName : propertyNames) {
            System.out.println(propertyName+prop.getProperty(propertyName));
        }



    }
}
